package com.ycl.plus.lm.hardware.domain.bo;

import com.ycl.plus.lm.hardware.domain.HardwareEquipSensor;
import com.ycl.plus.lm.common.mybatis.core.domain.BaseEntity;
import com.ycl.plus.lm.common.core.validate.AddGroup;
import com.ycl.plus.lm.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 设备和传感器关联业务对象 hardware_equip_sensor
 *
 * @author devil-ycl
 * @date 2024-11-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HardwareEquipSensor.class, reverseConvertGenerate = false)
public class HardwareEquipSensorBo extends BaseEntity {

    @NotNull(message = "设备id不能为空")
    private Long equipId;

    @NotNull(message = "传感器id不能为空")
    private Long sensorId;
}
